package cn.chencaiju.day09;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;

import org.junit.Test;

public class IOFileTest {
	public static final String url="E:\\camp\\camp\\code\\src\\cn\\chencaiju\\day08\\Car.java";
	@Test public void testIOFile() {
		List<String> lines=null;
		try {
			lines=Files.readAllLines(Paths.get(url));
		} catch (IOException e) {
			e.printStackTrace();
		}
		if(lines==null)return ;
		for(String temp:lines) {
			System.out.println(temp);
		}
	}
}
